package com.mgkj.dto.yf;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.List;

/**
 * @author : ssy
 * @date: 2024-02-28
 * @Description:
 */
@Data
@ApiModel("进货单单头Dto")
public class InitJhdDto implements Serializable {

    @ApiModelProperty(value = "单别")
    @NotBlank(message = "单别不能为空")
    @JsonProperty("TG001")
    private String TG001;

    @ApiModelProperty(value = "单号")
    @NotBlank(message = "单号不能为空")
    @JsonProperty("TG002")
    private String TG002;

    @ApiModelProperty(value = "进货日期")
    @NotBlank(message = "进货日期不能为空")
    @JsonProperty("TG003")
    private String TG003;

    @ApiModelProperty(value = "工厂")
    @JsonProperty("TG004")
    @NotBlank(message = "工厂不能为空")
    private String TG004;

    @ApiModelProperty(value = "供应商编号")
    @NotBlank(message = "供应商编号不能为空")
    @JsonProperty("TG005")
    private String TG005;

    @ApiModelProperty(value = "公司")
    @NotBlank(message = "公司编号不能为空")
    private String company;

    @ApiModelProperty(value = "审核码")
    @Pattern(regexp = "^[NY]$",message = "只允许输入N|Y")
    @JsonProperty("TG013")
    private String TG013;

    @ApiModelProperty(value = "进货单单身")
    private List<InitPURTHDto> initPurthDtoList;

    private String createBy;
}
